package com.ming.closeto.utils;

import android.content.Context;
import android.net.wifi.WifiManager;
import android.text.TextUtils;

/**
 * MAC 地址
 */
public class MacUtils {

    public static String getMac(Context mContext) {
        WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
        String mac = wifiManager.getConnectionInfo().getMacAddress();
        if (!TextUtils.isEmpty(mac)) {
            return mac;
        }
        return "";
    }
}
